//
// Copyright 2017 Google Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions://
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.//
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//

@import "../../packages/mdc-form-field/mdc-form-field";
@import "../common";
@import "../../packages/mdc-drawer/mixins";
@import "../../packages/mdc-drawer/mdc-drawer";
@import "../../packages/mdc-elevation/mdc-elevation";
@import "../../packages/mdc-list/mdc-list";
@import "../../packages/mdc-button/mdc-button";
@import "../../packages/mdc-top-app-bar/mdc-top-app-bar";

.examples {
  display: flex;
  flex-wrap: wrap;
}

.example {
  margin: 24px;
}

.example iframe {
  height: 600px;
  width: 100vw;
  max-width: 780px;
}

.intro {
  padding: 48px 24px;
}

.drawer-example-heading {
  span {
    flex-grow: 1;
  }

  @include mdc-typography(headline6);
  display: flex;
}

.theme-radio-buttons {
  margin: 24px 0;
}

.extra-content-wrapper {
  padding: 10px;
}

.demo-form-field {
  margin: 16px 0;
}

/* Place drawer and content side by side. */
.demo-body {
  display: flex;
  padding: 0;
  margin: 0;
  height: 100vh;
}

.demo-content {
  position: relative;
  flex: auto;
  overflow: auto;
  background: #fff;
}

.demo-main {
  padding-left: 16px;
  padding-right: 16px;
  overflow: auto;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

#extra-wide-content {
  width: 200vw;
}

#extra-tall-content {
  height: 200vh;
}

.demo-drawer--custom {
  @include mdc-drawer-border-color(lightblue);
  @include mdc-drawer-subtitle-ink-color(darkolivegreen);
  @include mdc-drawer-surface-fill-color(pink);
  @include mdc-drawer-item-icon-ink-color(darkolivegreen);
  @include mdc-drawer-title-ink-color(darkolivegreen);
  @include mdc-drawer-activated-overlay-color(darkcyan);
  @include mdc-drawer-item-text-ink-color(darkolivegreen);
  @include mdc-drawer-item-activated-text-ink-color(darkcyan);
  @include mdc-drawer-item-activated-icon-ink-color(darkcyan);
}

.demo-drawer--accessible {
  @include mdc-drawer-fill-color-accessible(darkcyan);
  @include mdc-drawer-activated-overlay-color(pink);
  @include mdc-drawer-item-activated-text-ink-color(pink);
  @include mdc-drawer-item-activated-icon-ink-color(pink);
}

.demo-top-app-bar {
  position: absolute;
}

.demo-selected-destination {
  font-weight: 500;
}
